Skip to main content

Get Statement Analysis

POST https://api.manka.tz/api/v1/analysis/2d

This analyses the pdf and generates the report. The response is in a json format.

Header Requirements

  • Authorizaion --required

Body Params

  • file --required
  • fullname --required
curl example request
curl -X 'POST' 'https://api.manka.tz/api/v1/analysis/2d'
-F fullname=Hussein \
-F 'file=@AirtelMoney_7876543_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \

Response Sample

  1. Status OK Response
200 OK
{
"total_cash_inflow": 84489.0,
"cash_inflow": {
"bank_to_wallet": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"agent_deposit": {
"total_amout": 74000.0,
"percentage_of_total": 87.59
},
"p2p_received": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"other_cashin_flow": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"loan_disbursements": {
"total_amout": 10489.0,
"percentage_of_total": 12.41
}
},
"total_cash_outflow": 84540.0,
"cash_outflow": {
"luku": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"p2p_sent": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"wallet_to_bank": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"agent_withdrawal": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"bill_payment": {
"total_amout": 70840.0,
"percentage_of_total": 83.79
},
"yatosha": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"other_cashout_flow": {
"total_amout": 13700.0,
"percentage_of_total": 16.21
},
"loan_repayments": {
"total_amout": 0.0,
"percentage_of_total": 0.0
}
}
}